<template>
  <div class='navs'>
    <van-nav-bar
      :title="title"
      left-arrow
      @click-left="$router.go(-1)"> 
      <van-icon :name="icon" slot="right" />
    </van-nav-bar>
  </div>
 
</template>

<script>
  export default {
    name:'navs',
    props:['title','icon']
  }
</script>

<style lang='less'>
  .van-nav-bar{
      background-color: #5cadff;
      .van-icon{
        color: white;
      }
      .van-nav-bar__title{
        color: white;
      }
    }
</style>